package com.jfast.framework.web.orm;

import java.util.Map;

/**
 * 表信息
 * @author zengjintao
 * @version 1.0
 * @createTime 2018年1月12日上午10:19:20
 */
public class TableInfo {
	
	private String tableName;
	
	private String[] primaryKeys;
	
	private Class<?> tableClass;
	
	private Map<String,String> columnMapping;

	public TableInfo(String tableName, String[] primaryKeys, Class<?> tableClass,Map<String,String> columnMapping) {
		this.tableName = tableName;
		this.primaryKeys = primaryKeys;
		this.tableClass = tableClass;
		this.columnMapping = columnMapping;
	}

	public TableInfo() {
		
	}

	public Map<String, String> getColumnMapping() {
		return columnMapping;
	}

	public void setColumnMapping(Map<String, String> columnMapping) {
		this.columnMapping = columnMapping;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}


	public Class<?> getTableClass() {
		return tableClass;
	}

	public String[] getPrimaryKeys() {
		return primaryKeys;
	}

	public void setPrimaryKeys(String[] primaryKeys) {
		this.primaryKeys = primaryKeys;
	}

	public void setTableClass(Class<?> tableClass) {
		this.tableClass = tableClass;
	}
}
